Skip to content

chore: add deb/rpm#62

Merged
tianzhou merged 1 commit intomainfrom
rpm-deb
Oct 10, 2025
Merged

chore: add deb/rpm#62
tianzhou merged 1 commit intomainfrom
rpm-deb

Conversation

@tianzhou
Copy link
Contributor

Fix #61

Copilot AI review requested due to automatic review settings October 10, 2025 10:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds DEB and RPM package generation to the GitHub Actions release workflow to address package distribution requirements. The changes introduce a new packaging job that creates Linux distribution packages using nfpm (a simple package manager for creating packages).

  • Adds a new packages job that generates DEB and RPM packages for Linux AMD64
  • Updates the release job to depend on both build and packages jobs
  • Includes the generated packages in the GitHub release artifacts

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.


- name: Install nfpm
run: |
echo "deb [trusted=yes] https://repo.goreleaser.com/apt/ /" | sudo tee /etc/apt/sources.list.d/goreleaser.list
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using [trusted=yes] bypasses GPG verification for the repository, which poses a security risk. Consider adding the GPG key verification or using the official installation method.

Suggested change
echo "deb [trusted=yes] https://repo.goreleaser.com/apt/ /" | sudo tee /etc/apt/sources.list.d/goreleaser.list
curl -fsSL https://repo.goreleaser.com/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/goreleaser-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/goreleaser-archive-keyring.gpg] https://repo.goreleaser.com/apt/ /" | sudo tee /etc/apt/sources.list.d/goreleaser.list

Copilot uses AI. Check for mistakes.
Comment on lines +194 to +195
binaries/pgschema-deb/*.deb
binaries/pgschema-rpm/*.rpm
Copy link

Copilot AI Oct 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The artifact paths reference 'binaries/' directory but the packages job uploads artifacts with names 'pgschema-deb' and 'pgschema-rpm'. The correct paths should be 'pgschema-deb/.deb' and 'pgschema-rpm/.rpm'.

Copilot uses AI. Check for mistakes.
@tianzhou tianzhou merged commit a033416 into main Oct 10, 2025
2 checks passed
@tianzhou tianzhou deleted the rpm-deb branch October 23, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add rpm/deb binary CI pipeline

2 participants